package com.cloudkinto.service.orderinput.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author zhangyy
 * @date 2020/6/8 13:36
 * @description:
 */
@Data
@ApiModel
public class OrderInputPackageAdd {

    /**
     * 箱类号
     */
    @ApiModelProperty("箱类号")
    private String boxTypeNumber;

    /**
     * 包裹长度
     */
    @ApiModelProperty("包裹长度")
    @NotNull(message = "请填写包裹长度")
    private float packageLenght;

    /**
     * 包裹宽度
     */
    @ApiModelProperty("包裹宽度")
    @NotNull(message = "请填写包裹宽度")
    private float packageWidth;

    /**
     * 包裹高度
     */
    @ApiModelProperty("包裹高度")
    @NotNull(message = "请填写包裹高度")
    private float packageHeight;

    /**
     * 包裹重量
     */
    @ApiModelProperty("包裹重量")
    @NotNull(message = "请填写包裹重量")
    private float packageWeight;

    @ApiModelProperty("包裹数量")
    @NotNull(message = "请填写包裹数量")
    private int packageCount;

    @NotEmpty(message = "请选择商品信息")
    private List<OrderInputProductAdd> productDetailList;

    @NotEmpty(message = "请选择商品信息")
    private List<OrderInputProductAdd> productList;
}
